﻿// -----------------------------------------------------------------------
// <copyright file="RibbonShellViewModel.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Abc.Desktop.ViewModels
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Windows.Input;

    using DevExpress.Xpf.Bars;

    using Microsoft.Practices.Prism.Events;
    using Microsoft.Practices.Prism.Regions;
    using Microsoft.Practices.Prism.ViewModel;
    using Microsoft.Practices.Unity;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class RibbonShellViewModel : NotificationObject
    {
        #region PRIVATE MEMBERS
        private readonly IEventAggregator m_eventAggregator;
        private readonly IUnityContainer m_container;
        #endregion

        #region CONSTRUCTORS
        public RibbonShellViewModel (IEventAggregator eventAggregator)
        {
            m_eventAggregator = eventAggregator;
            NewTabCommand = new DelegateCommand(OpenNewTab, CanOpenNewTab);
        }
        #endregion

        #region PUBLIC PROPERTIES
        public IRegionManager RegionManager { get; set; }
        #endregion

        #region COMMANDS
        public ICommand NewTabCommand { get; set; }
        #endregion

        #region PRIVATE MEMBERS
        private void OpenNewTab()
        {
            var a = 1;
        }

        private bool CanOpenNewTab()
        {
            return true;
        }
        #endregion
    }
}
